using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class PT_PhysioMap : EntityTypeConfiguration<PT_Physio>
    {
        public PT_PhysioMap()
        {
            // Primary Key
            this.HasKey(t => t.PT_ID);

            // Properties
            this.Property(t => t.PT_Number)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("PT_Physio");
            this.Property(t => t.PT_ID).HasColumnName("PT_ID");
            this.Property(t => t.PT_PatIID).HasColumnName("PT_PatIID");
            this.Property(t => t.PT_OrderID).HasColumnName("PT_OrderID");
            this.Property(t => t.PT_Evaluation).HasColumnName("PT_Evaluation");
            this.Property(t => t.PT_TreatmentPlan).HasColumnName("PT_TreatmentPlan");
            this.Property(t => t.PT_Date).HasColumnName("PT_Date");
            this.Property(t => t.PT_Closed).HasColumnName("PT_Closed");
            this.Property(t => t.PT_Number).HasColumnName("PT_Number");
        }
    }
}
